package com.行为模型.状态模式;

/**环境类
 * @author chenhs
 * @date 2020/11/11
 */
public class Context {
	//抽象状态
	private Status status;
	
	//构造函数
	public Context ( ){
		status =new LowStatus(this);
	}
	//添加分数
	public  void  add(Integer number){
		System.out.println("请求被转到了抽象状态。");
		status.add(number);
	}
	
	public Status getStatus() {
		return status;
	}
	
	public void setStatus(Status status) {
		this.status = status;
	}
	
	
}
